const { request } = require('./request.js');

module.exports = {
  login: (formSubmit) => request('/login',formSubmit), //登录
  docLogin: (formSubmit) => request('/loginDoctor',formSubmit), //医生登录
  register: (formSubmit) => request('/addUser',formSubmit), //注册
  docRegister: (formSubmit) => request('/addDoctor',formSubmit),  //医生注册
  getUserInfo: (formSubmit) => request('/findUserMessageByOrder', formSubmit),   //查询用户信息
  allUser: () => request('/AllUser', {}),   //全部用户账号
  allUserInfo: () => request('/AllUserMessage', {}),  //全部用户信息
  allDoc: () => request('/AllDoctor', {}),  //全部医生信息
  addAppointment: (formSubmit) => request('/addAppointment',formSubmit), //添加预约
  allAppointment: () => request('/AllAppointment', {}),   //全部预约信息
  deleteUser: (formSubmit) => request('/DeleteUser', formSubmit), //删除用户账号
  deleteUserInfo: (formSubmit) => request('/DeleteUserMessage', formSubmit),  //删除用户信息
  deleteDocInfo: (formSubmit) => request('/DeleteDoctor', formSubmit),  //删除医生信息
  deleteAppointment: (formSubmit) => request('/DeleteAppointment', formSubmit) //删除预约
}